from models import CarWashLocalModel,UserCarModel
from helpers.director.db_tools import sim_dict
from django.conf import settings

def get_context():
    zk_list=[]
    for zk in CarWashLocalModel.objects.filter(status='active'):
        zk_list.append(sim_dict(zk))
    car_list=[]
    for car in UserCarModel.objects.all():
        car_list.append(sim_dict(car))
    ctx ={
        'zk_list':zk_list,
        'car_list':car_list,
        'url_root':settings.URL_ROOT
    }
    return ctx
